﻿<!--{inc(header.view.html)}-->

<div class="content" id="content">
	<div class="top-menu-box">
    	<div class="z">
            <span class="z-f"><a href="#">内容管理</a>&nbsp;&gt;</span>
            <span class="z-f"><a href="#">{$modulename}信息增加</a></span>
            <div class="z-f-r"><span class="user-t"><a href="{$site_url}"  target="_blank">网站首页</a></span><span class="user-info"></span><a href="index.php?app=default&act=quit" onClick="return confirm('确认退出管理系统吗？');"   >退出管理</a></div>
        </div>
        <div class="top-menu">
        	<ul>
                                                 <li><a href="index.php?app={$appname}&act=index"  target="mainframe">{$modulename}信息列表</a></li>
												 <li class="current"><a href="#">{$modulename}信息增加</a></li>
                                          <!--       <li><a href="index.php?app={$appname}&act=cagrylist"  target="mainframe">{$modulename}分类列表</a></li>
                                                 <li><a href="index.php?app={$appname}&act=cagryadd"  target="mainframe">{$modulename}分类增加</a></li>
												 -->
			
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="main">


<form action="?app={$appname}&act=addpost" method="post">

<table  class="data" >
<tbody>                                   
                                   
                                  <tr >
	                                      <td width="15%">所属栏目<font color=red>(*)</font>:</td>
	                                      <td>
	                                       <select name="data[cat_id]" >
                                           <option value='0'>请选择分类...</option>
                                           
                                           <?php foreach((array)$categorydata as $_key => $_value ) { ?>
                                           
				<option value="{$_value.cat_id}" <?php if ($_value.cat_id==0) { ?> selected <?php } ?> >{$_value.str_pad}{$_value.cat_name}</option>
                
                                            <?php } ?>
                                           </select>
	                                     </td>
                                 </tr>                                   
                                   
 
                                   <tr >
	                                      <td>关键字<font color=red>(标签)</font>:</td>
	                                      <td>
                                            <input type="text" name="data[keywords]" size="50" value="" id="keyword_s">
                    <select name="select2" onChange="MM_keyword(this)">
                      <option value='' selected>常用关键字</option>
		 					 <?php foreach($keyworddata as $_key => $_value ) { ?>

		  <option value='{$_value}' >{$_value}</option>

		  <?php } ?> 
                    </select>
 <SCRIPT LANGUAGE="JavaScript">
<!--
function get_obj(obj){
   return document.getElementById(obj);
}

function foreColor_font()
{
  
  var arr = showModalDialog('../data/html/selcolor.htm', '', 'dialogWidth:18.5em; dialogHeight:17.5em; status:0');
  if (arr != null)  get_obj('titlecolor').value=arr;
  else  get_obj('titlecolor').focus();
  get_obj('titlecolor').style.background=arr;
}


//-->
</SCRIPT>                   
                    
                    
                    <script language="JavaScript">
<!--
function MM_keyword(selObj){ //v3.0
  va=selObj.options[selObj.selectedIndex].value
  if (va!=''){
  	if(get_obj('keyword_s').value==''){
		get_obj('keyword_s').value=va;
	}else{
		vb=get_obj('keyword_s').value;
		arr = vb.split(' ');
		for(var i=0;i<arr.length;i++){
			if(arr[i]==va){
				alert(va+",已经存在了,不能雷同");
				return ;
			}
		}
		get_obj('keyword_s').value+=" "+va;
	}
  } 
}
//-->
</script>
                    <br/>作为相关文章的索引,如多个用空格隔开 
                                          </td>
                                   </tr>
                                   
                                   
                                 <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                      <td>描述(description):</td>
	                                      <td>
	                                   <textarea name="data[description]" cols="100" rows="5"></textarea><br/>用于搜索引擎优化
	                                     </td>
                                 </tr>                    
 
                                
                                 <!--PHPSCUP:START><tr >
	                                      <td><PHPSCUP:CONTENT_ICON></td>
	                                      <td>
	                                      <PHPSCUP:CONTENT_CODE>
	                                     </td>
                                 </tr><PHPSCUP:END--><!--PHPSCUP:DELSTART--><tr >
	                                      <td>产品名称</td>
	                                      <td>
	                                      <phpscup:form type='text' value='' size='' maxlength='' id='' class='' name='data[productname_s__nofilter_]'  appname='product'  sxdata=''  sxdatatype='0'  />
	                                     </td>
                                 </tr><tr >
	                                      <td>商品型号</td>
	                                      <td>
	                                      <phpscup:form type='text' value='' size='' maxlength='' id='' class='' name='data[shoptype_s__nofilter_]'  appname='product'  sxdata=''  sxdatatype='0'  />
	                                     </td>
                                 </tr><tr >
	                                      <td>积分点数</td>
	                                      <td>
	                                      <phpscup:form type='text' value='' size='' maxlength='' id='' class='' name='data[shopmoney_s__nofilter_]'  appname='product'  sxdata=''  sxdatatype='0'  />
	                                     </td>
                                 </tr><tr >
	                                      <td>市面价格</td>
	                                      <td>
	                                      <phpscup:form type='text' value='' size='' maxlength='' id='' class='' name='data[martprice_s__nofilter_]'  appname='product'  sxdata=''  sxdatatype='0'  />
	                                     </td>
                                 </tr><tr >
	                                      <td>现售价格</td>
	                                      <td>
	                                      <phpscup:form type='text' value='' size='' maxlength='' id='' class='' name='data[nowprice_s__nofilter_]'  appname='product'  sxdata=''  sxdatatype='0'  />
	                                     </td>
                                 </tr><tr >
	                                      <td>库存量</td>
	                                      <td>
	                                      <phpscup:form type='text' value='' size='' maxlength='' id='' class='' name='data[shopnum_s__nofilter_]'  appname='product'  sxdata=''  sxdatatype='0'  />
	                                     </td>
                                 </tr><tr >
	                                      <td>图片</td>
	                                      <td>
	                                      <phpscup:form type='ouppic' width='370' height='150' scrolling='no' frameborder='0' size='40' name='data[my_pic_s__nofilter_]'  appname='product'  sxdata=''  sxdatatype='0'  />
	                                     </td>
                                 </tr><tr >
	                                      <td>产品描述</td>
	                                      <td>
	                                      <phpscup:form type='webeditor' width='100%' height='450' scrolling='no' frameborder='0' name='data[my_content_s__nofilter_]'  appname='product'  sxdata=''  sxdatatype='0'  />
	                                     </td>
                                 </tr><!--PHPSCUP:DELEND-->          
                                 
                                 <tr >
	                                     <td>相关设置:</td>
	                                     <td>
                                        <span close="011"> 
                    <input type="checkbox" name="data[yz]" value="1"  checked >
                    审核 </span> <span close="01"> 
                    <input type="checkbox" name="data[top]" value="1" >
                    置顶 
                    <input type="checkbox" name="data[levels]" value="1" >
                    推荐 </span> 
                   <input type='checkbox' name='data[special]' value='1' >主页头条
                                         </td>

                                </tr>
                                                          
                                                     
                                
                                <tr >
	                                     <td>&nbsp;</td>
	                                     <td><input name="id" type="hidden" value="{$id}" /><input type="submit" class="buton" value=" 提 交 " /></td>
                                </tr>
</tbody></table>
                                </form>	
	
	
	
	
	
	
	
	
	 	

        
        <div class="notic"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b> <span ></span></div>
    </div>
</div>
<!--{inc(footer.view.html)}-->